package com.itheima.chapter08.list;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

//特点
//可重复
//有序
public class demo1 {
    public static void main(String[] args) {
        List<String> list= new ArrayList<>();
        list.add("aa");
        list.add("bb");
        list.add("cc");
        list.add("dddd");
        list.add("aa");
        Iterator<String> it = list.iterator();
        while(it.hasNext()){
            String next = it.next();
            System.out.println(next);
        }
    }
}
